﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Stu_sys.Models
{
    public class RoleViewModel
    {
        [Display(Name = "角色id")]
        public int RoleId { get; set; }

        [Display(Name = "角色名")]
        public string? RoleName { get; set; }

        [Display(Name = "创建时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }

        [Display(Name = "修改时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
